#include "udp_client.hpp"


// ./udp_client ip port
int main(int argc, char* argv[])
{
  if (argc != 3){
    std::cout << "Usage: " << argv[0] << " server_ip server_port" << std::endl;
    exit(-1);
  } 

  std::string server_ip = argv[1];
  int server_port = atoi(argv[2]);

  UdpClient* ucli = new UdpClient(server_port, server_ip);
  ucli->UdpClientInit();
  ucli->UdpClientStart();

  delete ucli;

  return 0;
}
